package proxy1;

public class SellHouseForOther implements House {

    private PoorStudent poorStudent;

    public SellHouseForOther(PoorStudent poorStudent) {
        this.poorStudent = poorStudent;
    }

    @Override
    public void buyHouse() {
        // 找房子
        System.out.println("find");

        //签合同
        System.out.println("sign");

        poorStudent.buyHouse();

        // 办理贷款

        System.out.println("bank");
        // 。。。

    }
}
